﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using ESRI.ArcGIS.ADF.BaseClasses;

namespace PlanningGIS.Tools.SystemTools
{
    /// <summary>
    /// 数据库迁移
    /// </summary>
    public class DBMoveCmd: BaseCommand
    {
        /// <summary>
        /// 构造函数
        /// </summary>
        public DBMoveCmd()
        {

        }

        /// <summary>
        /// 是否可用
        /// </summary>
        public override bool Enabled
        {
            get { return true; }
        }

        /// <summary>
        /// 是否已选择
        /// </summary>
        public override bool Checked
        {
            get { return base.Checked; }
        }

        /// <summary>
        /// 按钮名称
        /// </summary>
        public override string Name
        {
            get { return "DBMoveCmd"; }
        }

        /// <summary>
        /// 按钮标题
        /// </summary>
        public override string Caption
        {
            get { return "数据库迁移"; }
        }

        /// <summary>
        /// 提示
        /// </summary>
        public override string Tooltip
        {
            get { return "数据库迁移"; }
        }

        /// <summary>
        /// 消息
        /// </summary>
        public override string Message
        {
            get { return "数据库迁移"; }
        }

        /// <summary>
        /// 帮助文件
        /// </summary>
        public override string HelpFile
        {
            get { return base.HelpFile; }
        }

        /// <summary>
        /// 帮助连接
        /// </summary>
        public override int HelpContextID
        {
            get { return base.HelpContextID; }
        }

        /// <summary>
        /// 图标
        /// </summary>
        public override int Bitmap
        {
            get { return base.Bitmap; }
        }

        /// <summary>
        /// 分类
        /// </summary>
        public override string Category
        {
            get { return base.Category; }
        }

        /// <summary>
        /// 创建按钮
        /// </summary>
        /// <param name="hook"></param>
        public override void OnCreate(object hook)
        {
            

        }
        /// <summary>
        /// 
        /// </summary>
        public override void OnClick()
        {
            FrmDbMove frm = new FrmDbMove();
            frm.ShowDialog();
        }
    }
}
